home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2921 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: aargh.incubus.sub.org!marc
  2. From: marc@aargh.incubus.sub.org (Marc 'Nepomuk' Heuler)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Demo/game to OS friendly part II
  5. Message-ID: <QkW2y*Roa@aargh.incubus.sub.org>
  6. Date: Tue, 06 Feb 1996 23:28:52 CET
  7. Reply-To: marc@aargh.incubus.sub.org
  8. References: <4dg16j$ha1@serpens.rhein.de> <4djdn2$2tk@sunsystem5.informatik.tu-muenchen.de>
  9.  <gBe1y*tna@aargh.incubus.sub.org> <4f4kru$hj6@oreig.uji.es>
  10. Organization: Data Design
  11. X-Newsreader: Arn V1.03a
  12.  
  13. In article <4f4kru$hj6@oreig.uji.es>, Jorge Acereda Macia writes:
  14.  
  15. > I can't find info in the manuals referring to allocating non-interleaved 
  16. > contiguous bitmaps in chip mem.
  17. > Should I allocate it as BMF_INTERLEAVED|BMF_DISPLAYABLE and change the
  18. > interleaved flag in the bitmap structure? 
  19. > Should I allocate width*height*planes+8 bytes in chip mem to ensure 
  20. > alignment and create the bitmap structure myself?
  21.  
  22. If  you don't need an interleaved bitmap, then don't ask for one (ie do not
  23. set  BMF_INTERLEAVED).  If you need your bitmap to be non-interleaved, then
  24. grab  the  planes via AllocRaster(), and merge them to a valid bitmap using
  25. InitBitmap().  Note well the difference between those two requirements.
  26.